module.exports = function (gulp, plugins) {
    var sass = require('gulp-sass')(require('sass'));
    return function (done) {
        gulp.src('./src/static/style/**/*.scss')
            .pipe(plugins.plumber())
            // .pipe(plugins.sourcemaps.init())
            // .pipe(plugins.changed('./dist/static/style'))
            .pipe(sass())
            // .pipe(plugins.sourcemaps.write('.'))
            .pipe(plugins.rev())
            .pipe(gulp.dest('dist/static/style'))
            .pipe(plugins.rev.manifest())
            .pipe(gulp.dest("dist/rev/scss")).on('end', () => {
                done();
            });

    };
};